//
//  YZMTrendPacket.h
//  YZMicroStock
//
//  Created by wangminhong on 16/4/12.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <Foundation/Foundation.h>

@class YZMTrendItem;

@interface YZMTrendPoint : NSObject

@property (nonatomic, assign) double price;
@property (nonatomic, assign) double avgPrice;
@property (nonatomic, assign) double volume;
@property (nonatomic, assign) BOOL rise;

@end

@interface YZMTrendPacket : NSObject

@property (nonatomic, assign) double closePrice;
@property (nonatomic, assign, readonly) double maxOffset;
@property (nonatomic, assign, readonly) double maxVolume;
@property (nonatomic, assign) double highPrice;
@property (nonatomic, assign) double lowPrice;


- (void)setOriginItems: (NSArray *)items;
- (void)updateFromItems: (NSArray *)items;

- (YZMTrendItem *)lastItem;

- (NSArray *)trendDrawPoints;

- (YZMTrendItem *)itemOfIndex: (NSInteger)index;

- (void)clearData;

@end
